set(_sources 
	./source/AppController.h
	./source/AppController.cpp
	./source/MainViewController.h
	./source/MainViewController.cpp
	./source/main.cpp
)

ios_configure_asset(KEYBOARDTEST_ASSETS ./ios-assets/Base.lproj/LaunchScreen.storyboard)

roger_add(
    KeyboardTest
    BODENDEMO_RESOURCES
    ${PROJECT_SOURCE_DIR}/examples/DemoIcon/demo_icon.json)

set(ANDROID_ICON "android:icon=\"@mipmap/ic_launcher_png\"")

set(MACOSX_BUNDLE_BUNDLE_NAME KeyboardTest)
set(MACOSX_BUNDLE_GUI_IDENTIFIER "io.mycompany.KeyboardTest")

add_universal_executable(KeyboardTest SOURCES ${_sources} ${KEYBOARDTEST_ASSETS} ${BODENDEMO_RESOURCES})


ios_configure_app_info(TARGET KeyboardTest
    LAUNCHSCREEN "LaunchScreen"
    TARGETED_DEVICES IPHONE IPAD
    IPHONE_ORIENTATIONS ALL
    IPAD_ORIENTATIONS ALL)

set_xcode_appicon_asset(KeyboardTest "ApplicationIcon")

use_boden_template_info_plist(KeyboardTest)

group_sources_automatically(${CMAKE_CURRENT_SOURCE_DIR} ${_sources})

target_link_libraries(KeyboardTest ui yoga)
